package priv.dajie.tzzq.bot.model;

import priv.dajie.tzzq.model.GoodsState;

import java.math.BigDecimal;


public class SteamSellingItem {
    private String SteamName;
    private BigDecimal price;
    private String listingid;
    private GoodsState goodsState;

    public SteamSellingItem(String steamName, BigDecimal price, String listingid, GoodsState goodsState) {
        SteamName = steamName;
        this.price = price;
        this.listingid = listingid;
        if(!(goodsState==GoodsState.SELLING || goodsState==GoodsState.CONFIRMING))
            throw new RuntimeException("状态必须为待出售或待确认");
        this.goodsState = goodsState;
    }

    public String getSteamName() {
        return SteamName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public String getListingid() {
        return listingid;
    }

    public GoodsState getGoodsState() {
        return goodsState;
    }

    @Override
    public String toString() {
        return "SteamSellingItem{" +
                "SteamName='" + SteamName + '\'' +
                ", price=" + price +
                ", listingid='" + listingid + '\'' +
                ", goodsState=" + goodsState +
                '}';
    }
}
